package com.sbr.esbmonitor.tests.builders;

import java.util.ArrayList;
import java.util.List;

import com.sbr.esbmonitor.model.xml.servers.ServerType;
import com.sbr.esbmonitor.model.xml.servers.ServersType;


public class ServersTypeBuilder {

	private List<ServerType> serverTypeList = new ArrayList<ServerType>();
	
	public ServersTypeBuilder() {
	}
	
	public ServersTypeBuilder withServer(ServerType server) {
		this.serverTypeList.add(server);
		return this;
	}
	
	public ServersType build() {
		ServersType serversType = new ServersType();
		serversType.getServer().addAll(serverTypeList);
		return serversType;
	}
}
